﻿using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace DongFangGuoKai.WMSPlatform.Domain.Models
{
    ///<summary>
    ///物料
    ///</summary>
    [SugarTable("DBO.t_Material")]
    public partial class t_Material
    {
        public t_Material()
        {


        }
        /// <summary>
        /// Desc:物料Id
        /// Default:
        /// Nullable:False
        /// </summary>           
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? Code { get; set; }

        /// <summary>
        /// Desc:物料名称
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string Name { get; set; }

        /// <summary>
        /// Desc:型号规格
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? ModelSpec { get; set; }

        /// <summary>
        /// Desc:货主Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? OwnerId { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? OwnerName { get; set; }

        /// <summary>
        /// Desc:物料类型Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? TypeId { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? TypeCode { get; set; }

        /// <summary>
        /// Desc:物料类型
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? TypeName { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? FullTypeIds { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? FullTypeNames { get; set; }

        /// <summary>
        /// Desc:基本单位Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? UnitId { get; set; }

        /// <summary>
        /// Desc:基本单位
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? UnitName { get; set; }

        /// <summary>
        /// Desc:毛重
        /// Default:
        /// Nullable:True
        /// </summary>           
        public decimal? GrossWeight { get; set; }

        /// <summary>
        /// Desc:净重
        /// Default:
        /// Nullable:True
        /// </summary>           
        public decimal? NetWeight { get; set; }

        /// <summary>
        /// Desc:毛重重量单位Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? GrossWeightUnitId { get; set; }

        /// <summary>
        /// Desc:毛重重量单位
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? GrossWeightUnitName { get; set; }

        /// <summary>
        /// Desc:净重重量单位Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? NetWeightUnitId { get; set; }

        /// <summary>
        /// Desc:净重重量单位
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? NetWeightUnitName { get; set; }

        /// <summary>
        /// Desc:体积
        /// Default:
        /// Nullable:True
        /// </summary>           
        public decimal? Volum { get; set; }

        /// <summary>
        /// Desc:体积单位Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? VolumUnitId { get; set; }

        /// <summary>
        /// Desc:体积单位
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? VolumUnitName { get; set; }

        /// <summary>
        /// Desc:最小安全库存
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? MinSafetyStock { get; set; }

        /// <summary>
        /// Desc:最大安全库存
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? MaxSafetyStock { get; set; }

        /// <summary>
        /// Desc:描述
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? Remark { get; set; }

        /// <summary>
        /// Desc:创建人Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? CreateUserId { get; set; }

        /// <summary>
        /// Desc:创建人
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? CreateUserName { get; set; }

        /// <summary>
        /// Desc:创建时间
        /// Default:DateTime.Now
        /// Nullable:False
        /// </summary>           
        public DateTime CreateDate { get; set; }

        /// <summary>
        /// Desc:修改用户Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? ModifyUserId { get; set; }

        /// <summary>
        /// Desc:修改人
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? ModifyUserName { get; set; }

        /// <summary>
        /// Desc:修改时间
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? ModifyDate { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? Img { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? MaterialCategoryId { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public bool? HasSkuDetail { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? MaterialGroupId { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public bool? IsNeedCharging { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? ExpirationMonth { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? MaterialCategoryName { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public bool? IsDismantle { get; set; }

    }
}
